
<!DOCTYPE html>
<html lang='zh-cn'>
<head>
    <meta charset='utf-8'>
    <meta http-equiv='X-UA-Compatible' content='IE=edge'>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <title>代码-创建 - 禅道</title>
    <script>window.config={"webRoot":"\/zentao\/","debug":false,"appName":"","cookieLife":30,"requestType":"PATH_INFO","requestFix":"-","moduleVar":"m","methodVar":"f","viewVar":"t","defaultView":"html","themeRoot":"\/zentao\/theme\/","currentModule":"repo","currentMethod":"create","clientLang":"zh-cn","requiredFields":"SCM,name,path,encoding,client","router":"\/zentao\/index.php","save":"\u4fdd\u5b58","runMode":"","timeout":30000,"pingInterval":""};
    window.lang={"submitting":"\u7a0d\u5019...","save":"\u4fdd\u5b58","expand":"\u5c55\u5f00\u5168\u90e8","timeout":"\u8fde\u63a5\u8d85\u65f6\uff0c\u8bf7\u68c0\u67e5\u7f51\u7edc\u73af\u5883\uff0c\u6216\u91cd\u8bd5\uff01"};

    </script>
    <script>config.onlybody = "no";</script><link rel='stylesheet' href='/zentao/theme/default/zh-cn.default.css?v=12.5.3' type='text/css' media='screen' />
    <script src='/zentao/js/all.js?v=12.5.3'></script>
    <style>a{color:#169;}
    a:hover, a:active{ text-decoration:underline; color:#C61A1A;}
    h2,h3 {font-size:20px; margin: 0; clear: both;}
    h3 {font-size:16px;}
    .revision{font-size:12px; line-height:20px; text-align:right; padding-right:8px;}
    .directory{ background-image:url('theme/default/images/repo/dir.png')}
    .file{ background-image:url('theme/default/images/repo/txt.png')}
    //.icon{ width:17px; padding-left:10px; padding-right:2px;}
    .mini-icon{ display: inline-block; height: 16px; width: 16px; background-color: transparent; background-position: 0 0; background-repeat: no-repeat; vertical-align: text-bottom;}
    .action {float:left;}
    .input-group select#encrypt{border-left:0px;}
    .arrange {float:right;}
    .versions {position:relative}
    #diffRepo {position:absolute; left:20px;z-index:1000;}
    #repoID {display: inline-block; width: auto;}
    .repoCode a:hover{text-decoration:none;}
    .commentButton
    {
        background-repeat: no-repeat;
        position: absolute;
        left: -28px;
        width: 40px;
        z-index: 10;
        cursor:pointer;
        font-size:18px;
        color:#4183C4;
        display: none;
    }
    .repoCode tr.over .commentButton {display: block;}
    .bug
    {
        background-repeat: no-repeat;
        position: absolute;
        left: -7px;
        width: 20px;
        z-index: 0;
        cursor:pointer;
        font-size:18px;
        color: #4183C4;
        line-height: 18px;
    }
    .repoCode .icon{opacity:1;}
    .icon-comment-add:before {content: '\e74c'; transform: scale(-1, 1); display: inline-block; font-weight: normal;}
    .icon-comment-add:after {content: '+'; display: block; font-weight: normal; position: absolute; left: 16px; top: 1px; font-family: Arial; font-weight: bold; font-size: 12px;}
    .icon-comments:before {content: '\e750'; transform: scale(-1, 1); display: inline-block; font-weight: normal; font-size: 18px; line-height: 18px;}
    .commentButton:hover,.bug:hover{color: #d20b0b;}
    .commentBoard{border-top: 1px solid #E4E4E4; border-bottom: 1px solid #E4E4E4; padding:0; white-space:normal; background-color:#eee; padding: 10px;}
    .commentBoard .table-form th {background: none}
    .lines input{width:40px;}
    .commentSubmit, .commentCancel{margin-right:10px;}
    .commentFoot .optional{float:left;}
    .commentBoard.using .bugContainer {border: 1px solid #ddd; background: #fff}
    .commentBoard.using .bugContainer > .commentHeader {background: #f1f1f1; padding: 0 10px; border-bottom: 1px solid #ddd}
    .commentHeaderAuthor{max-width: 600px; line-height: 33px; font-weight: bold; color: #222; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;}
    .comment{width:100%; word-break:keep-all; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
    .commentContent{margin:10px;}
    .commentHeaderRight{float:right;}

    /* Sider */
    #mainContent > #sidebar > .side-body.affix {top:0px; z-index:10000;}

    /* Pre row */
    .repoCode table > tbody > tr.over td {background: #f8eec7;}
    .repoCode table > tbody > tr.over th {background: #cdcdcd; color: #333}

    /* Comment-btn */
    .comment-btn {position: relative; margin: 0; padding: 0; display: none}
    .repoCode tr.over .comment-btn {display: block;}
    .comment-btn .icon-wrapper {display: block; position: absolute; background: #4183C4; border-radius: 2px; width: 24px; height: 20px; left: -6px; top: 0; line-height: 20px; text-align: center; color: #fff; cursor: pointer; transition: transform 0.2s;}
    .comment-btn .icon-wrapper:before {display: block; content: ' '; right: -4px; top: 6px; position: absolute; border-left: 4px solid #4183C4; border-right: 0 solid transparent; border-bottom: 4px solid transparent; border-top: 4px solid transparent; width: 0; height: 0}
    .comment-btn .icon-wrapper:hover {background: #169; transform: scale(1.1)}
    .comment-btn .icon-wrapper:hover:before {border-left-color: #169}

    .repoCode tr.commented {cursor: pointer;}

    .repoCode tr.commented .comment-btn {display: block;}
    .repoCode tr.commented .comment-btn .icon-wrapper {background: none; border: none; width: 24px; line-height: 18px; height: 18px; left: -6px; color: #4183c4}
    .repoCode tr.commented .comment-btn .icon-wrapper:hover {border-color: #169; color: #169}
    .repoCode tr.commented .comment-btn .icon-wrapper > i:before {font-size: 18px; transform: scale(-1, 1); display: inline-block;}
    .repoCode tr.commented .comment-btn .icon-wrapper:before {display: none}

    .repoCode tr.over.commented .comment-btn .icon-wrapper, .repoCode tr.selected.commented .comment-btn .icon-wrapper {line-height: 20px; height: 20px; background: #4183C4; color: #fff; left: -6px}
    .repoCode tr.over.commented .comment-btn .icon-wrapper > i:before {font-size: 14px;}
    .repoCode tr.selected.commented .comment-btn .icon-wrapper > i:before {font-size: 14px;}
    .repoCode tr.over.commented .comment-btn .icon-wrapper:before, .repoCode tr.selected.commented .comment-btn .icon-wrapper:before {display: block;}

    /* repo action form */
    .repoCode .comment-list, .repoCode .comment-actions {max-width: 900px}
    .repoCode .bugFormContainer {border: 1px solid #bbb; margin: 0 0 0 15px; padding: 10px 20px 10px 10px; max-width: 880px; background: #fff}
    .repoCode .bugFormContainer th {width: 70px}

    .repoCode .action-row {display: none}
    .repoCode .with-action-row .action-row {display: table-row}
    .repoCode .action-cell {background: #EEE; white-space: normal; padding: 10px 15px 10px 0;}
    .repoCode .with-action-row table tr.selected .comment-btn:last-child {display: block;}
    .repoCode .with-action-row table tr.selected td {background: #f8eec7}
    .repoCode .with-action-row table tr.selected th {background: #cdcdcd}
    .repoCode .with-action-row table tr.selected .comment-btn .icon-wrapper > i:before, .repoCode #diff.with-action-row tr.selected .comment-btn .icon-wrapper > i:before {content: '\d7'}

    .repoCode .comment-row {display: none}
    .repoCode .comment-row.show {display: table-row !important;}
    .repoCode .comment-cell {background: #eee; white-space: normal;}
    .repoCode .comment-cell .panel {margin: 10px; border-color: #bbb}
    .repoCode .comment-cell .panel-body {padding: 6px 10px}
    .repoCode .comment-cell .panel-actions.pull-right {margin-right: 0; margin-top: 0;}
    .repoCode .comment-cell .editing .panel-body, .repoCode .comment-cell .commentContainer.show-form .panel-body {display: none}
    .repoCode .comment-cell .bug-edit-form,  {padding: 10px; display: none}
    .repoCode .comment-cell .editing .bug-edit-form, .repoCode .comment-cell .commentContainer.show-form .comment-edit-form {display: block;}

    .repoCode .comment {border: 1px solid #e5e5e5; background: #fafafa; padding: 5px 10px; margin-bottom: 10px;}
    .repoCode .comment .comment-edit-form {margin-top: 10px;}
    .repoCode .panel-bug .steps {background: #f1f1f1; padding: 5px 10px}
    .repoCode .panel-bug .bug-edit-form {margin-bottom: 10px;}
    .repoCode .panel-bug .panel-body {display: none}
    .repoCode .panel-bug .panel-heading {cursor: pointer;}
    .repoCode .panel-bug.show .panel-body {display: block;}
    .repoCode .panel-bug.show .icon-chevron-sign-down:before {content: '\e711'}
    .repoCode .panel-bug.show-edit-form .bug-edit-form,
    .repoCode .panel-bug.show-form .commentForm,
    .repoCode .comment.show-form .comment-edit-form {display: block;}
    .repoCode .panel-bug .bug-edit-form,
    .repoCode .panel-bug.show-form .addComment,
    .repoCode .panel-bug .commentForm,
    .repoCode .comment .comment-edit-form,
    .repoCode .panel-bug.show-edit-form .panel-body .title,
    .repoCode .panel-bug.show-edit-form .bug-date,
    .repoCode .comment.show-form .comment-content, .repoCode .comment.show-form .comment-date {display: none}

    .repoCode .text-content {white-space: normal; white-space: pre-line}
    .repoCode .text-muted {color: #aaa}

    .repoCode tr {transition: all 1s;}
    .repoCode tr.highlight {background: #fff4e5;}
    .repoCode tr.highlight td, .repoCode tr.highlight th {background: none; border-top: 1px solid #e48600; border-bottom: 1px solid #e48600}
    .repoCode tr.highlight.commented th {color: #e48600;}
    .repoCode tr.highlight.commented td, .repoCode tr.highlight.commented th {border-bottom: none}
    .repoCode tr.highlight + tr.highlight td, .repoCode tr.highlight + tr.highlight th {border-top: none}

    .repoCode .row-tip {display: none;}
    .repoCode tr.commented .row-tip {display: block; position: relative; right: -3px; bottom: -1px;}
    .repoCode tr.commented .tip, .repoCode tr.commented.open .tip.on-collapse {display: block; position: absolute; right: 0; bottom: 0; color: #4183c4; opacity: 0; padding:0 5px; background: #edf3ff; height: 20px; line-height: 20px; transition: opacity 0.2s;}
    .repoCode tr.commented:hover .tip.on-expand {opacity: 1}
    .repoCode tr.commented.open .tip.on-collapse {opacity: 1}
    .repoCode tr.commented.open .tip.on-expand {display: none}
    .repoCode tr.commented.open .tip.on-collapse span {display: none}
    .repoCode tr.commented.open:hover .tip.on-collapse span {display: inline;}
    .repoCode tr.commented.open {background: #f8fafe}
    .repoCode tr.commented .preview-icon {position: absolute; left: -6px; bottom: 0; width: 20px; height: 20px; line-height: 20px; text-align: center; color: #4183c4; background: #edf3ff; display: none}
    .repoCode tr.commented:hover .preview-icon {display: block; transform: scale(-1, 1);}
    .repoCode tr.commented .preview-icon:before {font-size: 18px;}

    .repoCode #diff tr.commented .row-tip {right: 0}
    .repoCode #diff tr.commented .icon-chat-dot {left: 0}

    .repoCode .panel, .bugFormContainer {transition: border 0.4s;}
    .repoCode .panel.highlight, #bugForm.highlight .bugFormContainer {border-color: #e48600;}

    #bugsPreview {white-space: normal;}
    #bugsPreview .dropdown-menu {top: -100%; left: 30%; padding-top: 0; min-width: 300px; max-width: 500px;}
    #bugsPreview .dropdown-menu > li.dropdown-header {background: #f1f1f1; padding-top: 8px;}
    #bugsPreview .dropdown-menu > li > a {border-top: 1px solid #e5e5e5; text-overflow : ellipsis; overflow: hidden;}
    #bugsPreview .dropdown-menu.show {display: block;}

    .icon-comments {position: relative; left: -50px}

    /* bug form */
    #bugForm, #bugForm table {margin: 0; padding: 0;}

    .panel .table + .panel-footer {border-top: 0; background: #fff}

    .transparent{ border-color:transparent;background: none repeat scroll 0 0 transparent;}
    .transparent:hover{ border-color:transparent;background: none repeat scroll 0 0 transparent;}

    .side-col{width: 600px;}
    #sidebar > .side-body{width: 580px;}
    .hide-sidebar #sidebar > .side-body{display: none;}

    #sidebar>.sidebar-toggle{left:5px; right:auto;}
    #sidebar>.sidebar-toggle>.icon{right:-4px; left:auto;}

    #logForm .fixed-footer a.allLogs{color:#fff !important;}

    #submitLabel{text-align:left;}
    </style><link rel='icon' href='/zentao/favicon.ico' type='image/x-icon' />
    <link rel='shortcut icon' href='/zentao/favicon.ico' type='image/x-icon' />
    <!--[if lt IE 10]>
    <script src='/zentao/js/jquery/placeholder/min.js?v=12.5.3'></script>
    <![endif]-->
</head>
<body>
<style>
    .picker-single .picker-selection-remove{z-index: 1000;}
    .picker-selection-single:after, .picker-multi.picker-focus .picker-selections:before{font-family: ZentaoIcon !important; content: '\f0d7' !important;}
</style>
<script>
    var chooseUsersToMail = '选择要发信通知的用户...';
    if($.fn.picker)
    {
        $(document).ready(function()
        {
            $(".picker-select[data-pickertype!='remote']").picker({chosenMode: true});
            $("[data-pickertype='remote']").each(function()
            {
                var pickerremote = $(this).attr('data-pickerremote');
                $(this).picker({chosenMode: true, remote: pickerremote});
            })
        });
    }
</script>
<header id='header'>
    <div id='mainHeader'>
        <div class='container'>
            <hgroup id='heading'>
                <h1 id='companyname' title='易软天创'><a href='/temp/index' >易软天创</a>
                </h1>
            </hgroup>
            <nav id='navbar'><ul class='nav nav-default'>
                <li  data-id='my'><a href="/index/ind2" ><span> 我的地盘</span></a></li>
                <li  data-id='product'><a href='/temp/product-index-no' >产品</a></li>
                <li class='active' data-id='project'><a href='/temp/project-index-no' class='active'>项目</a></li>
                <li  data-id='qa'><a href='/temp/product-showErrorNone-qa' >测试</a></li>
                <li class='divider'></li><li  data-id='ci'><a href='/temp/repo-browse' >集成</a></li>
                <li  data-id='doc'><a href='/temp/doc' >文档</a></li>
                <li  data-id='report'><a href='/temp/report-productSummary' >统计</a></li>
                <li class='divider'></li><li  data-id='company'><a href='/temp/company-browse' >组织</a></li>
                <li  data-id='admin'><a href='/temp/admin' >后台</a></li>
            </ul>
            </nav>
            <div id='toolbar'>
                <div id="userMenu">
                    <div id='searchbox'><div class='input-group'><div class='input-group-btn'><a data-toggle='dropdown' class='btn btn-link'><span id='searchTypeName'>项目</span> <span class='caret'></span></a><input type='hidden' name='searchType' id='searchType' value='project'  />
                        <ul id='searchTypeMenu' class='dropdown-menu'><li ><a href='javascript:$.setSearchType("bug");' data-value='bug'>Bug</a></li><li ><a href='javascript:$.setSearchType("story");' data-value='story'>需求</a></li><li ><a href='javascript:$.setSearchType("task");' data-value='task'>任务</a></li><li ><a href='javascript:$.setSearchType("testcase");' data-value='testcase'>用例</a></li><li class='selected'><a href='javascript:$.setSearchType("project");' data-value='project'>项目</a></li><li ><a href='javascript:$.setSearchType("product");' data-value='product'>产品</a></li><li ><a href='javascript:$.setSearchType("user");' data-value='user'>用户</a></li><li ><a href='javascript:$.setSearchType("build");' data-value='build'>版本</a></li><li ><a href='javascript:$.setSearchType("release");' data-value='release'>发布</a></li><li ><a href='javascript:$.setSearchType("productplan");' data-value='productplan'>产品计划</a></li><li ><a href='javascript:$.setSearchType("testtask");' data-value='testtask'>测试单</a></li><li ><a href='javascript:$.setSearchType("doc");' data-value='doc'>文档</a></li><li ><a href='javascript:$.setSearchType("caselib");' data-value='caselib'>用例库</a></li><li ><a href='javascript:$.setSearchType("testreport");' data-value='testreport'>测试报告</a></li></ul></div><input id='searchInput' class='form-control search-input' type='search' onclick='this.value=""' onkeydown='if(event.keyCode==13) $.gotoObject();' placeholder='编号(ctrl+g)'/></div><a href='javascript:$.gotoObject();' class='btn btn-link' id='searchGo'>GO!</a></div>
                    <ul id="userNav" class="nav nav-default">
                        <li><a class='dropdown-toggle' data-toggle='dropdown'><span class='user-name'>admin</span><span class='caret'></span></a><ul class='dropdown-menu pull-right'><li class="user-profile-item"><a href='/temp/my-profile' class=' no-role'><div class='avatar avatar bg-secondary avatar-circle'>A</div>
                            <div class="user-profile-name">admin</div><div class="user-profile-role"></div></a></li><li class="divider"></li><li><a href='/temp/my-profile' >个人档案</a>
                        </li><li><a href='/temp/my-changepassword' class='iframe' data-width='500'>更改密码</a>
                        </li><li class='divider'></li><li class='dropdown-submenu'><a href='javascript:;'>主题</a><ul class='dropdown-menu pull-left'><li class='selected'><a href='javascript:selectTheme("default");' data-value='default'>禅道蓝（默认）</a></li><li ><a href='javascript:selectTheme("green");' data-value='green'>叶兰绿</a></li><li ><a href='javascript:selectTheme("red");' data-value='red'>赤诚红</a></li><li ><a href='javascript:selectTheme("purple");' data-value='purple'>玉烟紫</a></li><li ><a href='javascript:selectTheme("pink");' data-value='pink'>芙蕖粉</a></li><li ><a href='javascript:selectTheme("blackberry");' data-value='blackberry'>露莓黑</a></li><li ><a href='javascript:selectTheme("classic");' data-value='classic'>经典蓝</a></li></ul></li><li class='dropdown-submenu'><a href='javascript:;'>Language</a><ul class='dropdown-menu pull-left'><li class='selected'><a href='javascript:selectLang("zh-cn");'>简体</a></li><li ><a href='javascript:selectLang("zh-tw");'>繁體</a></li><li ><a href='javascript:selectLang("en");'>English</a></li><li ><a href='javascript:selectLang("de");'>Deutsch</a></li><li ><a href='javascript:selectLang("fr");'>Français</a></li><li ><a href='javascript:selectLang("vi");'>Tiếng Việt</a></li><li ><a href='javascript:selectLang("ja");'>日本語</a></li></ul></li><li class='custom-item'><a href='custom-ajaxMenu-project-index.html?onlybody=yes' data-toggle='modal' data-type='iframe' data-icon='cog' data-width='80%'>自定义导航</a></li><li class="divider"></li><li class='dropdown-submenu'><a data-toggle='dropdown'>帮助</a><ul class='dropdown-menu pull-left'><li><a href='tutorial-start.html' class='iframe' data-class-name='modal-inverse' data-width='800' data-headerless='true' data-backdrop='true' data-keyboard='true'>新手教程</a>
                        </li><li><a href='https://www.zentao.net/book/zentaopmshelp.html?fullScreen=zentao' class='open-help-tab' target='_blank' rel='noopener noreferrer'>手册</a>
                        </li><li><a href='/temp/misc-changeLog' class='iframe' data-width='800' data-headerless='true' data-backdrop='true' data-keyboard='true'>修改日志</a>
                        </li></ul></li>
                            <li><a href='/temp/misc-about' class='about iframe' data-width='1050' data-headerless='true' data-backdrop='true' data-keyboard='true' data-class='modal-about'>关于禅道</a>
                            </li><li class="divider"></li><li><a href='/temp/user-logout' >退出</a>
                            </li></ul></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div id='subHeader'>
        <div class='container'>
            <div id="pageNav" class='btn-toolbar'></div>
            <nav id='subNavbar'><ul class='nav nav-default'>
                <li class=' ' data-id='code'><a href='/zentao/repo-browse-.html' >代码</a>
                </li>
                <li class=' ' data-id='build'><a href='/zentao/job-browse.html' >构建</a>
                </li>
                <li class=' ' data-id='jenkins'><a href='/zentao/jenkins-browse.html' >Jenkins</a>
                </li>
                <li class=' active' data-id='maintain'><a href='/zentao/repo-maintain.html' >版本库</a>
                </li>
                <li class=' ' data-id='rules'><a href='/zentao/repo-setrules.html' >指令</a>
                </li>
            </ul>
            </nav>
            <div id="pageActions"><div class='btn-toolbar'></div></div>
        </div>
    </div>
</header>

<main id='main'  >
    <div class='container'>
        <script src='/zentao/js/kindeditor/kindeditor.min.js?v=12.5.3'></script>
        <script src='/zentao/js/kindeditor/lang/zh_CN.js?v=12.5.3'></script>
        <script>
            (function($) {
                var kuid = '60c809001e9e0';
                var editor = {"id":["desc"],"tools":"simpleTools"};
                var K = KindEditor;

                var bugTools =
                    [ 'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic','underline', '|',
                        'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist', 'insertunorderedlist', '|',
                        'emoticons', 'image', 'code', 'link', '|', 'removeformat','undo', 'redo', 'fullscreen', 'source', 'about'];
                var simpleTools =
                    [ 'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic','underline', '|',
                        'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist', 'insertunorderedlist', '|',
                        'emoticons', 'image', 'code', 'link', 'table', '|', 'removeformat','undo', 'redo', 'fullscreen', 'source', 'about'];
                var fullTools =
                    [ 'formatblock', 'fontname', 'fontsize', 'lineheight', '|', 'forecolor', 'hilitecolor', '|', 'bold', 'italic','underline', 'strikethrough', '|',
                        'justifyleft', 'justifycenter', 'justifyright', 'justifyfull', '|',
                        'insertorderedlist', 'insertunorderedlist', '|',
                        'emoticons', 'image', 'insertfile', 'hr', '|', 'link', 'unlink', '/',
                        'undo', 'redo', '|', 'selectall', 'cut', 'copy', 'paste', '|', 'plainpaste', 'wordpaste', '|', 'removeformat', 'clearhtml','quickformat', '|',
                        'indent', 'outdent', 'subscript', 'superscript', '|',
                        'table', 'code', '|', 'pagebreak', 'anchor', '|',
                        'fullscreen', 'source', 'preview', 'about'];
                var editorToolsMap = {fullTools: fullTools, simpleTools: simpleTools, bugTools: bugTools};

                // Kindeditor default options
                var editorDefaults =
                    {
                        cssPath: [config.themeRoot + 'zui/css/min.css'],
                        width: '100%',
                        height: '200px',
                        filterMode: true,
                        bodyClass: 'article-content',
                        urlType: 'absolute',
                        uploadJson: createLink('file', 'ajaxUpload', 'uid=' + kuid),
                        langType: 'zh_CN',
                        cssData: 'html,body {background: none}.article-content{overflow:visible}.article-content, .article-content table td, .article-content table th {line-height: 1.3846153846; font-size: 13px;}.article-content .table-auto {width: auto!important; max-width: 100%;}',
                        placeholder: "\u53ef\u4ee5\u5728\u7f16\u8f91\u5668\u76f4\u63a5\u8d34\u56fe\u3002",
                        placeholderStyle: {fontSize: '13px', color: '#888'},
                        pasteImage: {postUrl: createLink('file', 'ajaxPasteImage', 'uid=' + kuid)},
                        syncAfterBlur: true,
                        spellcheck: false
                    };

                window.editor = {};

                // Init kindeditor
                var setKindeditor = function(element, options)
                {
                    var $editor  = $(element);
                    var pasted   = false;
                    var editorID = $editor.attr('id');
                    options      = $.extend({}, editorDefaults, $editor.data(), options);
                    if(editorID === undefined)
                    {
                        editorID = 'kindeditor-' + $.zui.uuid();
                        $editor.attr('id', editorID);
                    }

                    var editorTool  = editorToolsMap[options.tools || editor.tools] || simpleTools;

                    /* Remove fullscreen in modal. */
                    if(config.onlybody == 'yes')
                    {
                        var newEditorTool = new Array();
                        for(i in editorTool)
                        {
                            if(editorTool[i] != 'fullscreen') newEditorTool.push(editorTool[i]);
                        }
                        editorTool = newEditorTool;
                    }

                    $.extend(options,
                        {
                            items: editorTool,
                            placeholder: $editor.attr('placeholder') || options.placeholder || '',
                            pasteImage: {postUrl: createLink('file', 'ajaxPasteImage', 'uid=' + kuid), placeholder: $editor.attr('placeholder') || "\u53ef\u4ee5\u5728\u7f16\u8f91\u5668\u76f4\u63a5\u8d34\u56fe\u3002"},
                        });

                    try
                    {
                        var keditor = K.create('#' + editorID, options);
                        window.editor['#'] = window.editor[editorID] = keditor;
                        $editor.data('keditor', keditor);
                        return keditor;
                    }
                    catch(e){return false;}
                };

                // Init kindeditor with jquery way
                $.fn.kindeditor = function(options)
                {
                    return this.each(function()
                    {
                        setKindeditor(this, options);
                    });
                };

                // Init all kindeditor
                var initKindeditor = function(afterInit)
                {
                    var $submitBtn = $('form :input[type=submit]');
                    if($submitBtn.length)
                    {
                        $submitBtn.next('#uid').remove();
                        $submitBtn.after("<input type='hidden' id='uid' name='uid' value=" + kuid + ">");
                    }
                    if($.isFunction(afterInit)) afterInit();
                    $.each(editor.id, function(key, editorID)
                    {
                        setKindeditor('#' + editorID);
                    });
                };

                // Init all kindeditors when document is ready
                $(initKindeditor);
            }(jQuery));
        </script>
        <script>scm = "Git";</script>
        <div id='mainContent' class='main-row'>
            <div class='main-col main-content'>
                <div class='center-block'>
                    <div class='main-header'>
                        <h2>创建</h2>
                    </div>
                    <form id='repoForm' method='post' class='form-ajax'>
                        <table class='table table-form'>
                            <tr>
                                <th class='thWidth'>类型</th>
                                <td style="width:550px"><select name='SCM' id='SCM' onchange='scmChanged(this.value)' class='form-control'>
                                    <option value='Git' selected='selected' title='Git' data-keys='git g'>Git</option>
                                    <option value='Subversion' title='Subversion' data-keys='subversion s'>Subversion</option>
                                </select>
                                </td>
                                <td class="tips-git">请参照<a target="_blank" href="https://www.zentao.net/book/zentaopmshelp/207.html">这里</a>，设置版本库定时同步。</td>
                            </tr>
                            <tr>
                                <th>名称</th>
                                <td class='required'><input type='text' name='name' id='name' value='' class='form-control' autocomplete="off" />
                                </td>
                                <td></td>
                            </tr>
                            <tr>
                                <th>地址</th>
                                <td class='required'><input type='text' name='path' id='path' value='' class='form-control' autocomplete="off" />
                                </td>
                                <td class='muted'>
                                    <span class="tips-git">例如：/home/user/myproject</span>
                                    <span class="tips-svn">例如：http://example.googlecode.com/svn/trunk/myproject</span>
                                </td>
                            </tr>
                            <tr>
                                <th>编码</th>
                                <td class='required'><input type='text' name='encoding' id='encoding' value='utf-8' class='form-control' autocomplete="off" />
                                </td>
                                <td class='muted'>提交日志的编码，可以用逗号连接起来的多个，比如utf-8。</td>
                            </tr>
                            <tr>
                                <th>客户端</th>
                                <td class='required'><input type='text' name='client' id='client' value='' class='form-control' autocomplete="off" />
                                </td>
                                <td class='muted'>
                                    <span class="tips-git">例如：/usr/bin/git</span>
                                    <span class="tips-svn">例如：/usr/bin/svn</span>
                                </td>
                            </tr>
                            <tr class="account-fields">
                                <th>用户名</th>
                                <td><input type='text' name='account' id='account' value='' class='form-control' autocomplete="off" />
                                </td>
                            </tr>
                            <tr class="account-fields">
                                <th>密码</th>
                                <td>
                                    <div class='input-group'>
                                        <input type='password' name='password' id='password' value='' class='form-control' autocomplete='off' />
                                        <span class='input-group-addon fix-border fix-padding'></span>
                                        <select name='encrypt' id='encrypt' class='form-control'>
                                            <option value='plain' title='不加密' data-keys='bujiami bjm'>不加密</option>
                                            <option value='base64' selected='selected' title='BASE64' data-keys='base64 b'>BASE64</option>
                                        </select>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <th>权限</th>
                                <td class='acl'>
                                    <div class='input-group mgb-10'>
                                        <span class='input-group-addon'>分组</span>
                                        <select name='acl[groups][]' id='aclgroups' class='form-control chosen' multiple>
                                            <option value='1' title='管理员' data-keys='guanliyuan gly'>管理员</option>
                                            <option value='2' title='研发' data-keys='yanfa yf'>研发</option>
                                            <option value='3' title='测试' data-keys='ceshi cs'>测试</option>
                                            <option value='4' title='项目经理' data-keys='xiangmujingli xmjl'>项目经理</option>
                                            <option value='5' title='产品经理' data-keys='chanpinjingli cpjl'>产品经理</option>
                                            <option value='6' title='研发主管' data-keys='yanfazhuguan yfzg'>研发主管</option>
                                            <option value='7' title='产品主管' data-keys='chanpinzhuguan cpzg'>产品主管</option>
                                            <option value='8' title='测试主管' data-keys='ceshizhuguan cszg'>测试主管</option>
                                            <option value='9' title='高层管理' data-keys='gaocengguanli gcgl'>高层管理</option>
                                            <option value='10' title='其他' data-keys='qita qt'>其他</option>
                                            <option value='11' title='guest' data-keys='guest g'>guest</option>
                                            <option value='12' title='受限用户' data-keys='shouxianyonghu sxyh'>受限用户</option>
                                        </select>
                                    </div>
                                    <div class='input-group'>
                                        <span class='input-group-addon user-addon'>用户</span>
                                        <select name='acl[users][]' id='aclusers' class='form-control chosen' multiple>
                                            <option value='admin' title='admin' data-keys='admin a'>admin</option>
                                            <option value='closed' title='Closed' data-keys='closed c'>Closed</option>
                                        </select>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <th>描述</th>
                                <td colspan='2'><textarea name='desc' id='desc' rows='3' class='form-control'></textarea>
                                </td>
                            </tr>
                            <tr>
                                <th></th>
                                <td colspan='2' class='text-center form-actions'>
                                    <button type='submit' id='submit' class='btn btn-wide btn-primary'  data-loading='稍候...'>保存</button>              <a href='javascript:history.go(-1);' class='btn btn-back btn-wide' >返回</a>            </td>
                            </tr>
                        </table>
                    </form>
                </div>
            </div>
        </div>
    </div><script>
    $.initSidebar();
</script>

    <iframe frameborder='0' name='hiddenwin' id='hiddenwin' scrolling='no' class='debugwin hidden'></iframe>

</main><footer id='footer'>
    <div class="container">
        <ul class='breadcrumb'><li><a href='/zentao/my/' >禅道</a>
        </li><li><a href='/zentao/repo-browse.html' >集成</a>
        </li><li class='active'><a href='/zentao/repo-maintain.html' >代码</a>
        </li><li class='active'>创建</li></ul>    <div id='poweredBy'>
        <small class='muted'><a href='https://api.zentao.net/goto.php?item=aiux' class='link-aiux' target='_blank'>Designed by <strong>艾体验</strong></a></small> &nbsp;
        <a href='https://www.zentao.net' target='_blank'><i class='icon-zentao'></i> 禅道12.5.3</a> &nbsp;
        <a href='https://api.zentao.net/goto.php?item=proversion&from=footer' target='_blank' id='proLink' class='text-important'>专业版 <i class='text-danger icon-pro-version'></i></a> &nbsp;           </div>
    </div>
</footer>
<div id="noticeBox"></div>
<script>
    /* Alert got messages. */
    needPing = false;
    $(function()
    {
        var windowBlur = false;
        if(window.Notification)
        {
            window.onblur  = function(){windowBlur = true;}
            window.onfocus = function(){windowBlur = false;}
        }
        setInterval(function()
        {
            $.get(createLink('message', 'ajaxGetMessage', "windowBlur=" + (windowBlur ? '1' : '0')), function(data)
            {
                if(!windowBlur)
                {
                    $('#noticeBox').append(data);
                    adjustNoticePosition();
                }
                else
                {
                    if(data)
                    {
                        if(typeof data == 'string') data = $.parseJSON(data);
                        if(typeof data.message == 'string') notifyMessage(data);
                    }
                }
            });
        }, 300000);
    })

</script>

<script>/**
 * Swtich repo.
 *
 * @param  int    $repoID
 * @param  string $module
 * @param  string $method
 * @access public
 * @return void
 */
function switchRepo(repoID, module, method)
{
    if(typeof(eventKeyCode) == 'undefined') eventKeyCode = 0;
    if(eventKeyCode > 0 && eventKeyCode != 13) return false;

    /* The projec id is a string, use it as the project model. */
    if(isNaN(repoID))
    {
        $.cookie('projectMode', repoID, {expires:config.cookieLife, path:config.webRoot});
        repoID = 0;
    }

    if(method != 'settings') method ="browse";
    link = createLink(module, method, 'repoID=' + repoID);
    location.href=link;
}

/**
 * Switch branch for git.
 *
 * @param  string $branchID
 * @access public
 * @return void
 */
function switchBranch(branchID)
{
    $.cookie('repoBranch', branchID, {expires:config.cookieLife, path:config.webRoot});
    $.cookie('repoRefresh', 1, {expires:config.cookieLife, path:config.webRoot});
    location.href=location.href;
}

/**
 * Limit select two.
 * @return void
 */
if($("input:checkbox[name='revision[]']:checked").length < 2)
{
    $("input:checkbox[name='revision[]']:lt(2)").attr('checked', 'checked');
}
$("input:checkbox[name='revision[]']").each(function(){ if(!$(this).is(':checked')) $(this).attr("disabled","disabled")});
$("input:checkbox[name='revision[]']").click(function(){
    var checkNum = $("input:checkbox[name='revision[]']:checked").length;
    if (checkNum >= 2)
    {
        $("input:checkbox[name='revision[]']").each(function(){ if(!$(this).is(':checked')) $(this).attr("disabled","disabled")});
        $('#submit').removeAttr('disabled');
    }
    else
    {
        $("input:checkbox[name='revision[]']").each(function(){$(this).attr("disabled", false)});
        $('#submit').attr('disabled', 'disabled');
    }
});

$(function()
{
    $(document).on('click', '.ajaxPager', function()
    {
        $('#sidebar .side-body').load($(this).attr('href'));
        return false;
    })

    if($('#sidebar').size() > 0)
    {
        var fixH = $("#sidebar").offset().top;
        $(window).scroll(function()
        {
            var scroH = $(this).scrollTop();
            if(scroH>=fixH)
            {
                $("#sidebar > .side-body").addClass('affix');
            }
            else if(scroH<fixH)
            {
                $("#sidebar > .side-body").removeClass('affix');
            }
        });
    }

    if($("main").is(".hide-sidebar"))
    {
        $(".sidebar-toggle").children().attr("class", "icon icon-angle-left");
    }
    else
    {
        $("#sidebar").bind("click", function ()
        {
            $(".sidebar-toggle").children().attr("class", "icon icon-angle-left");
            $(this).unbind();
        });
    }
})
$(function()
{
    scmChanged(scm);
    $('#submit').mousedown(function()
    {
        $form = $(this).closest('form');
        $form.css('min-height', $form.height());
    })
});

function scmChanged(scm) {
    if(scm == 'Git')
    {
        $('.account-fields').addClass('hidden');

        $('.tips-git').removeClass('hidden');
        $('.tips-svn').addClass('hidden');
    } else
    {
        $('.account-fields').removeClass('hidden');

        $('.tips-git').addClass('hidden');
        $('.tips-svn').removeClass('hidden');
    }
}

</script>
</body>
</html>
